package com.unicom.office.unit;

import com.unicom.office.node.OfficeTextStype;

import java.time.format.TextStyle;

public class TextRangeUnit extends OfficeUnit {
    private OfficeTextStype textStype;

    private String text;
    private Boolean isNumeric;

    public TextRangeUnit() {
    }

    public OfficeTextStype getTextStype() {
        return textStype;
    }

    public void setTextStype(OfficeTextStype textStype) {
        this.textStype = textStype;
    }

    public String getText() {
        return text;
    }

    public Boolean getIsNumeric() {
        return isNumeric;
    }

    public void setText(String text, Boolean isNumeric){
        this.text = text;
        this.isNumeric = isNumeric;
    }

    public String toString() {
        return text;
    }

    protected boolean testChildType(OfficeUnit child) {
        return false;
    }
}
